package com.example.drawex;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.view.View;

public class BitmapView extends View {

	public BitmapView(Context context, AttributeSet attr) {
		super(context, attr);
	}
	
	@Override
	protected void onDraw(Canvas canvas) {

		Paint paint = new Paint();
		Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.bang2011);
		canvas.drawBitmap(b, 0, 0, null);
		
		super.onDraw(canvas);
	}
}
